Add macOS target support - #46
Merged
Merged
Conversation
Add macOS Kotlin/Native targets and include macOS in the KMMBridge xcframework (min macOS 11). Move the shared Apple platform implementations (PlatformFileInputOutput, PlatformPrinterLoggerFacility) from iosMain to appleMain so they serve both iOS and macOS. Add Package.swift exposing the xcframework as a Swift package.
LaStrada
marked this pull request as ready for review
August 4, 2026 10:18
karolb-proexe
approved these changes
Aug 4, 2026
The manifest is generated, not authored. `gradlew spmDevBuild` writes the local-dev variant that points at the debug XCFramework, and the publish job writes the release variant carrying the artifact URL and checksum, commits it, and moves the release tag onto that commit. The default branch has never carried one. The tracked copy was spmDevBuild output that got checked in: deleting it and re-running the task reproduces it byte for byte. Ignore it so a local debug manifest can't reach a release.
Without this, running the spmDevBuild task leaves an untracked manifest in the working tree that can be committed again by accident.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description ✏️
Adds macOS support so a macOS Swift consumer can use KmpLog:
macosX64+macosArm64Kotlin/Native targets, macOS (min 11) added to the KMMBridge xcframework, the shared Apple platform implementations moved fromiosMaintoappleMain(so they serve iOS and macOS), and aPackage.swift.Screenshots / Recordings 📷
How to Test 🐛
./gradlew build— all targets compile and tests pass (macosArm64Testruns;macosX64Testis host-skipped on Apple Silicon but compiles/links). The assembled xcframework includes amacos-arm64_x86_64slice.References 🔗